package com.java.zhuiyun.api.backendHomepage.service.impl;

import com.java.zhuiyun.api.backendHomepage.service.BackendHomepageService;
import com.java.zhuiyun.api.playerinformation.entity.PlayerInformation;
import com.java.zhuiyun.api.playerinformation.mapper.PlayerInformationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName BackendHomepageServiceImpl
 * @Description TODO 后端首页
 * @Author WX
 * @Date 2023/9/18 8:30
 **/
@Service
public class BackendHomepageServiceImpl implements BackendHomepageService {
    @Autowired
    private PlayerInformationMapper playerInformationMapper;

    /*
     * @Author WX
     * @Description 关卡通关排行榜
     * @Date 2023/9/18 8:37
     * @Return
     * @param null
     */
    @Override
    public List<PlayerInformation> selectLevelRanking() {
        return playerInformationMapper.selectLevelRanking();
    }


    /*
     * @Author WX
     * @Description 积分排行榜
     * @Date 2023/9/18 8:56
     * @Return
     * @param null
     */
    @Override
    public List<PlayerInformation> selectScoreRanking() {
        return playerInformationMapper.selectScoreRanking();
    }
}
